﻿using SqlSugar;
using System;

namespace CoreShop.Model
{
    /// <summary>
    /// 商品销售主表
    /// </summary>
    public class corecmsfoodsalemaster
    {
        /// <summary>
        /// 序列
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int64 orderId { get; set; } = 0;

        /// <summary>
        /// 订单号
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String orderNo { get; set; }

        /// <summary>
        /// 取单号
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String number { get; set; }


        /// <summary>
        /// 交班单号
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String classNumber { get; set; }

        /// <summary>
        /// 日期
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public DateTime orderDate { get; set; }

        /// <summary>
        /// 总店id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int32 corpId { get; set; }

        /// <summary>
        /// 门店id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public long storeId { get; set; }

        /// <summary>
        /// 门店名称
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String storeName { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Decimal sumQuantity { get; set; }

        /// <summary>
        /// 单据应收金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Decimal sumAmount { get; set; }

        /// <summary>
        /// 单据实收金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Decimal sumRealAmount { get; set; }

        /// <summary>
        /// 做法金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Decimal sumTaskAmount { get; set; }

        /// <summary>
        /// 加料金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Decimal sumFeedAmount { get; set; }

        /// <summary>
        /// 赠送金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Decimal sumPresentAmount { get; set; }

        /// <summary>
        /// 优惠金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Decimal sumReduceAmount { get; set; }

        /// <summary>
        /// 小计
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Decimal sumAllAmount { get; set; }

        /// <summary>
        /// 单据折扣金额
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Decimal sumDiscountAmount { get; set; }

        /// <summary>
        /// 电话号码
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String telephone { get; set; }

        /// <summary>
        /// 订单类型	0全部；1堂食；2外带;
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int32 ordertype { get; set; }

        /// <summary>
        /// 桌号id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int64 deskId { get; set; }


        /// <summary>
        /// 桌号区域id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int64 deskCategoryId { get; set; }


        /// <summary>
        /// 桌号区域id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string deskCategoryName { get; set; }

        /// <summary>
        /// 桌位名称
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String deskName { get; set; }

        /// <summary>
        /// 会员id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int64 userId { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String userName { get; set; }

        /// <summary>
        /// 支付状态(0 未付款1 已支付) 
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int32 payStatus { get; set; }

        /// <summary>
        /// 订单状态(0 未付款1 已支付2 已配送4 取消订单5 订单退货6 货到付款7 订单超时9 已收货10 已确认收货)
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int32 status { get; set; }

        /// <summary>
        /// 操作员Id
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public long sysUserId { get; set; }

        /// <summary>
        /// 操作员名称
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public String sysUserName { get; set; }

        /// <summary>
        /// 是否上传
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Boolean isUpload { get; set; }

        /// <summary>
        /// 就餐人数
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int32 person { get; set; }


        /// <summary>
        ///本单积分	
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int32? userPoint { get; set; }

        /// <summary>
        /// 订单来源(0 前台订单1 小程序订单：2;美团外卖订单)
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public Int32 sourceType { get; set; } = 0;

    }
}
